/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package DTO;


public class CKhachHang extends CId{
    public CKhachHang(){}
   
    private long nhomKhId;
    public void setNhomKhId(long id){
        this.nhomKhId = id;
    }
    public long getNhomKhId()
    {
        return this.nhomKhId;
    }
    private int diemTichLuy;
    public void setDiemTichLuy(int diem_tich_luy){
         this.diemTichLuy = diem_tich_luy;
    }
    public int getDiemTichLuy(){
        return this.diemTichLuy;
    }
    private String hoten;
    public void setHoTen(String hoten){
        this.hoten = hoten;
    }
    public String getHoTen(){
        return this.hoten;
    }
    
    private String diaChi;
    public void setDiaChi(String diachi){
        this.diaChi = diachi;
    }
    public String getDiaChi(){
        return this.diaChi;
    }
    private String dienThoai;
    public void setDienThoai(String dien_thoai){
        this.dienThoai = dien_thoai;
    }
    public String getDienThoai(){
        return this.dienThoai;
    }
    
    private String fax;
    public void setFax(String fax){
        this.fax = fax;
    }
    public String getFax(){
        return this.fax;
    }
    
    private int loai;
    public void setLoai(int loai){
        this.loai = loai;
    }
    public int getLoai(){
        return this.loai;
    }
    private String maThe;
    public void setMaThe(String ma_the){
         this.maThe = ma_the;
    }
    public String getMaThe(){
        return this.maThe;
    }
    public String toString(){
        StringBuilder sBuilder = new StringBuilder();
        sBuilder.append("{");
        sBuilder.append(String.format("\"%s\" :\" %s \"",CFields.id,this.getId() ));
        sBuilder.append(",");
        sBuilder.append(String.format("\"%s\" :\" %s \"",CFields.ten,this.getHoTen()));        
        sBuilder.append(",");
        sBuilder.append(String.format("\"%s\" :\" %s \"",CFields.dia_chi,this.getDiaChi()));        
        sBuilder.append(",");
        sBuilder.append(String.format("\"%s\" :\" %s \"",CFields.diem_tich_luy,this.getDiemTichLuy()));        
        sBuilder.append(",");
        sBuilder.append(String.format("\"%s\" :\" %s \"",CFields.dien_thoai,this.getDienThoai()));        
        sBuilder.append(",");
        sBuilder.append(String.format("\"%s\" :\" %s \"",CFields.fax,this.getFax()));        
        sBuilder.append("}");
        return sBuilder.toString();
    }
}
